Peer proxy binding

ABSTRACT

A method and system for connecting a guest browser with a proxy includes: sending a registration request for a proxy from a peer to a proxy director; selecting a proxy by the proxy director and sending a proxy name to the peer; sending a registration request with a peer name and the proxy name from the peer to a dynamic domain name server (DNS); and registering a dynamic DNS record with a DNS name server by the dynamic DNS to associate the peer name with the proxy name. Thus, the dynamic DNS is used to convert the registration request from the peer to standard DNS. When a guest browser wants to connect to the peer, it performs a standard DNS look-up for the peer name at the DNS name server, which tells it which proxy to connect to. No proprietary locator service is needed to accomplish this connection.

FIELD OF THE INVENTION

The present invention relates to peer-to-peer services, and more particularly to the binding of peers to proxies in a peer-to-peer network.

BACKGROUND OF THE INVENTION

FIG. 1 illustrates a conventional Internet-based client-to-client communication network. The network includes a central server or proxy 102, a client or peer 101, and a guest 103. Any large distributed Internet-based service where there is client-to-client communication, such as instant messaging, uses centralized servers. The client 101 selects a central server 102 from a band of central servers, using some load balancing mechanism, and then registers with that server. When a guest 103 attempts to connect to the client 101 via the central server 102, the guest 103 uses a proprietary tool and a proprietary locator service to find which central server 102 to use to connect to the client 101.

However, because the tools and locator services are proprietary in nature, the guest 103 cannot connect to the client 101 using a standard web browser, as the standard web browser would not know how to communicate with the proprietary tools and services. This limits the ease guest access to shared image files.

Accordingly, there exists a need for an improved method and system for connecting a guest browser with a proxy. The method and system should not use any proprietary tools or services to find and connect to the proxy. The present invention addresses such a need.

SUMMARY OF THE INVENTION

A method and system for connecting a guest browser with a proxy includes: sending a registration request for a proxy from a peer to a proxy director; selecting a proxy by the proxy director and sending a proxy name to the peer; sending a registration request with a peer name and the proxy name from the peer to a dynamic domain name server (DNS); and registering a dynamic DNS record with a DNS name server by the dynamic DNS to associate the peer name with the proxy name. Thus, the dynamic DNS is used to convert the registration request from the peer to standard DNS. When a guest browser wants to connect to the peer, it performs a standard DNS look-up for the peer name at the DNS name server, which tells it which proxy to connect to. No proprietary locator service is needed to accomplish this connection.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 illustrates a conventional Internet-based client-to-client communication network.

FIG. 2 illustrates a preferred embodiment of a system for connecting a guest browser with a proxy in accordance with the present invention.

FIG. 3 is a flowchart illustrating a preferred embodiment of a method for connecting a guest browser with a proxy in accordance with the present invention.

FIG. 4 is a flowchart illustrating error handling in the method for connecting a guest browser with a proxy in accordance with the present invention.

DETAILED DESCRIPTION

The present invention provides an improved method and system for connecting a guest browser with a proxy. The following description is presented to enable one of ordinary skill in the art to make and use the invention and is provided in the context of a patent application and its requirements. Various modifications to the preferred embodiment will be readily apparent to those skilled in the art and the generic principles herein may be applied to other embodiments. Thus, the present invention is not intended to be limited to the embodiment shown but is to be accorded the widest scope consistent with the principles and features described herein.

FIG. 2 illustrates a preferred embodiment of a system for connecting a guest browser with a proxy in accordance with the present invention. The system includes a peer 201, a plurality of proxies, including Proxy A 202 and Proxy B 203, a proxy director 204, and a dynamic domain name server (DNS) 205. The peer 201 can be a photo sharing application residing on the peer owner's desktop, such as a photo sharing application. One of the proxies, such as Proxy B 203, can represent the peer 201 to a guest using a standard web browser 207. The proxy director 204 selects which proxy to which the peer 201 should bind. The dynamic DNS server 205 is responsible for issuing a request to a DNS name server 206 to bind the peer domains to the proxy domains. With the present invention, the peer 201 binds to an available proxy, where the guest browser 207 knows which proxy to visit in order to find the images hosted by the peer 201 via the proxy. This is described further below with reference to FIG. 3.

FIG. 3 is a flowchart illustrating a preferred embodiment of a method for connecting a guest browser with a proxy in accordance with the present invention. First, the peer 201 sends a registration request to the proxy director 204 for a proxy, via step 301. The proxy director 204 then selects one of the proxies 202-203, and sends the proxy name to the peer 201, via step 302. In this embodiment, the proxy director 204 determines which proxy has the least load and responds by returning the Internet domain name of the proxy.

Once the peer 201 knows which proxy to bind to, it sends a registration request with the peer name and proxy name to the dynamic DNS server 205, via step 303. In this embodiment, the proxy 201 sends an encrypted tuple to the dynamic DNS server 205 of the form: Peer Name, Proxy Domain Name. Peer Name represents a mapping of the name of the peer chosen by the peer owner during peer registration. The Proxy Domain name represents the proxy to which the peer 201 will bind as returned by the proxy director 204.

Once the dynamic DNS server 205 receives the peer name and proxy name, it registers a dynamic DNS record with the standard DNS name server 206 to associate the peer name with the proxy name, via step 304. In this embodiment, the dynamic DNS server 205 receives the tuple from the proxy 203 and stores it in its internal database. If this is a new mapping, it generates an Internet standard dynamic DNS update request to the standard DNS name server 206, which essentially creates an alias from a domain name constructed for the peer 201 to the domain name of the proxy to which it is bound.

In this manner, the dynamic DNS 205 is used to convert the registration request from the peer 201 to standard DNS. Thus, when a guest browser 207 wants to connect to the peer 201, it performs a standard DNS look-up for the peer name at the DNS name server 206, which tells it which proxy to connect to. No proprietary locator service is needed to accomplish this connection.

For example, assume that the name for the peer 201 is JoesPhotos.Quirophotos.com, and the name for Proxy B 203 is proxyB.quiro.com. On initialization, the peer 201 sends a registration request to the proxy director 204 for a proxy, via step 301. The proxy director 204 determines that Proxy B 203 has the lightest load and returns the proxy name, “proxyB.quiro.com”, to the peer 201, via step 302. The peer 201 then sends a registration request with JoesPhotos.Quirophotos.com and proxyB.quiro.com to the dynamic DNS server 205, via step 303. The dynamic DNS server 205 registers a record with the DNS name server 206, via step 304. This record is a CNAME record type which associates JoesPhotos.Quirophotos.com with proxyB.quiro.com. The peer 201 then establishes a connection with Proxy B 203, announcing that it is ready to receive requests.

Thus, when a guest wishes to visit the peer 201, he goes to the Uniform Resource Locator (URL) http://JoesPhotos.Quriophotos.com using his web browser 207. The guest browser 207 resolves the peer name, JoesPhotos.Quirophotos.com, with the DNS name server 206, which resolves to proxyB.quiro.com for Proxy B 203. The HTTP request then goes to Proxy B 203, which converts the request to a proprietary protocol and services it.

Load Balancing

In selecting a proxy for the peer to connect to, via step 302, the proxy director 204 maintains an internal table of all the active proxies. Several variables which may be associated with each proxy in the proxy table, including:

C=CPU capacity for the proxy host system, where C=(number of CPUs)×(Average CPU speed in MHz).

P=number of assigned peers to the proxy.

W=(Average number of daily GB served by the proxy over the last 7 days)/P

For each proxy, the proxy director 204 calculates the load, L, based on the following formula: L=(P/C)+(W×0.01)

When the proxy director 204 responds to a request for a proxy from a peer 201, the proxy director 204 looks in its internal load table and returns a reference to the proxy with the smaller L.

Error Handling

The proxy director 204 also has the capability to remove proxies from its active list, either because it detects that a proxy is not responding or is inactive, or by many intervention (such as to take a proxy off line for maintenance). FIG. 4 is a flowchart illustrating error handling in the method for connecting a guest browser with a proxy in accordance with the present invention. First, a proxy (such as Proxy A 202) goes off-line, via step 402. The proxy director 204 detects that Proxy A 202 is off line, via step 402, and removes Proxy A from its internal active list. The peer 201 then detects that Proxy A 202 is off-line, via step 403, and asks the proxy director 204 for a proxy. The proxy director will then assign a new proxy (such as Proxy B 203) to the peer 201, via step 404. The peer 201 then establishes a new connection with Proxy B 203, via step 405, as set forth above.

An improved method and system for connecting a guest browser with a proxy has been disclosed. The method and system sends a registration request for a proxy from a peer to a proxy director, selects a proxy by the proxy director and sending a proxy name to the peer, sends a registration request with a peer name and the proxy name from the peer to a dynamic DNS, and registering a dynamic DNS record with a DNS name server by the dynamic DNS to associate the peer name with the proxy name. In this manner, the dynamic DNS is used to convert the registration request from the peer to standard DNS. Thus, when a guest browser wants to connect to the peer, it performs a standard DNS look-up for the peer name at the DNS name server, which tells it which proxy to connect to. No proprietary locator service is needed to accomplish this connection.

Although the present invention has been described in accordance with the embodiments shown, one of ordinary skill in the art will readily recognize that there could be variations to the embodiments and those variations would be within the spirit and scope of the present invention. Accordingly, many modifications may be made by one of ordinary skill in the art without departing from the spirit and scope of the appended claims. 

1. A method for connecting a guest browser with a proxy, comprising: sending a registration request for a proxy from a peer to a proxy director; receiving a proxy name for the proxy having a least load selected by the proxy director, wherein the proxy is selected by: determining a load for each proxy of a plurality of proxies; selecting the proxy with the least load, wherein the load is a function of a number of peers assigned to the proxy, a central processing unit capacity of the proxy, and the amount of data served by the proxy over a period of time divided by the number of peers assigned to the proxy and the load is based on the following equation: Load=(P/C)+(W×0.01), where P is the number of peers assigned to the proxy, C is the central processing unit capacity of the proxy, and W is the amount of data served by the proxy over the period of time divided by the number of peers assigned to the proxy; and sending a registration request with a peer name and the proxy name from the peer to a dynamic domain name server (DNS), wherein the dynamic DNS registers a dynamic DNS record with a DNS name server to associate the peer name with the proxy name.
 2. The method of claim 1, wherein the sending of the registration request with the peer name and the proxy name from the peer to the dynamic-DNS comprises: sending an encrypted tuple with the peer name and the proxy name from the peer to the dynamic DNS.
 3. The method of claim 1, wherein the method further comprises: registering the dynamic DNS record with a standard DNS name server to associate the peer name with the proxy name.
 4. The method of claim 3, wherein the method further comprises: receiving a tuple from the proxy by the dynamic DNS; storing the tuple in an internal database by the dynamic DNS; determining if the association of the peer name with the proxy name is a new association; and generating a standard dynamic DNS update to the DNS name server, if the association is a new association.
 5. The method of claim 1, further comprising: detecting that the proxy has gone offline by the proxy director; removing the proxy from an internal active list by the proxy director; detecting that the proxy has gone offline by the peer; requesting a new proxy from the proxy director by the peer; returning the new proxy to the peer by the proxy director; and establishing a new connection with the new proxy by the peer.
 6. The method of claim 1, wherein the peer directly sends the registration request for the proxy to the proxy director.
 7. The method of claim 1, wherein the peer directly sends the registration request with the peer name and the proxy name to the dynamic DNS.
 8. A computer readable storage medium storing computer executable instructions for connecting a guest browser with a proxy when executed by a computer comprising: sending a registration request for a proxy from a peer to a proxy director; receiving a proxy name for the proxy having a least load selected by the proxy director, wherein the proxy is selected by: determining a load for each proxy of a plurality of proxies; selecting the proxy with the least load, wherein the load is a function of a number of peers assigned to the proxy, a central processing unit capacity of the proxy, and the amount of data served by the proxy over a period of time divided by the number of peers assigned to the proxy and the load is based on the following equation: Load=(P/C)+(W×0.01), where P is the number of peers assigned to the proxy, C is the central processing unit capacity of the proxy, and W is the amount of data served by the proxy over the period of time divided by the number of peers assigned to the proxy; and sending a registration request with a peer name and the proxy name from the peer to a dynamic domain name server (DNS), wherein the dynamic DNS registers a dynamic DNS record with a DNS name server to associate the peer name with the proxy name.
 9. The medium of claim 8, wherein the sending of the registration request with the peer name and the proxy name from the peer to the dynamic DNS comprises: sending an encrypted tuple with the peer name and the proxy name from the peer to the dynamic DNS.
 10. The medium of claim 8, further comprising: registering the dynamic DNS record with a standard DNS name server to associate the peer name with the proxy name.
 11. The medium of claim 10, further comprising: receiving a tuple from the proxy by the dynamic DNS; storing the tuple in an internal database by the dynamic DNS; determining if the association of the peer name with the proxy name is a new association; and generating a standard dynamic DNS update to the DNS name server, if the association is a new association.
 12. The medium of claim 8, further comprising: detecting that the proxy has gone offline by the proxy director; removing the proxy from an internal active list by the proxy director; detecting that the proxy has gone offline by the peer; requesting a new proxy from the proxy director by the peer; returning the new proxy to the peer by the proxy director; and establishing a new connection with the new proxy by the peer.
 13. A system, comprising: a peer; a plurality of proxies; a proxy director adapted to: receive a registration request from the peer; determine a load for each proxy of a plurality of proxies; select the proxy with a least load; and send the proxy name of the proxy with the least load to the peer, wherein the load is a function of a number of peers assigned to the proxy, a central processing unit capacity of the proxy, and the amount of data served by the proxy over a period of time divided by the number of peers assigned to the proxy and the load is based on the following equation: Load=(P/C)+(W×0.01), where P is the number of peers assigned to the proxy, C is the central processing unit capacity of the proxy, and W is the amount of data served by the proxy over the period of time divided by the number of peers assigned to the proxy; a dynamic domain name server (DNS), wherein the dynamic DNS receives the registration request from the peer with a peer name and the proxy name, wherein the dynamic DNS registers a dynamic DNS record with a DNS name server to associate the peer name with the proxy name.
 14. The system of claim 13, wherein when the proxy director detects that the proxy has gone offline, the proxy director removes the proxy from an internal active list.
 15. The system of claim 13, wherein when the peer detects that the proxy has gone offline, the peer requests a new proxy from the proxy director. 